Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to have system-mode without process tracking #314

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cvonelm
Copy link
Member

@cvonelm cvonelm commented Jan 5, 2024

This should reduce the overhead in situations where you really only want to track metrics in system-wide mode.

Copy link
Member

@bmario bmario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, update the man page with the new command line option.

include/lo2s/trace/trace.hpp Outdated Show resolved Hide resolved
include/lo2s/trace/trace.hpp Outdated Show resolved Hide resolved
src/config.cpp Outdated
@@ -221,9 +221,11 @@ void parse_program_options(int argc, const char** argv)
.metavar("NAME")
.optional();

system_mode_options.toggle("system-wide",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This option seems confusing. What you want to use is a reversable toggle called process-recording (or something like that) with a default of true.

So you'd call lo2s with .../lo2s -a --no-process-monitoring [...].

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of the grievances I have with the lo2s CLI is that it is not very orthogonal in places.

However here consistency is probably better than trying to shoehorn in orthogonality...

@cvonelm cvonelm force-pushed the system-mode-without-process-tracking branch from f43776b to 34087e0 Compare February 14, 2024 17:54
…s tracking

This should reduce the overhead in situations where you really only want
to track metrics in system-wide mode.
@cvonelm cvonelm force-pushed the system-mode-without-process-tracking branch from 34087e0 to 0ed485b Compare August 19, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants